<?php if(!defined('APP_ROOT')){exit('error!');}?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $site_title;?></title>
<link type="text/css" href="<?php echo PUBLIC_URL;?>css/font-awesome.min.css" rel="stylesheet">
<link type="text/css" href="<?php echo TEMPLATE_URL;?>style.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo PUBLIC_URL;?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo TEMPLATE_URL;?>js/manage.js"></script>
</head>
<body>
<?php include View::getView('header');?>
<?php include View::getView('side');?>
<div id="mainbox">
    <div class="wrapper">
        <div class="main">
            <div class="itembox w100">
                <div class="wrap">
                    <h2><?php echo $page_title;?></h2>
                    <div class="itemmain">
                        <div id="adm_edit_head">
                            <span>店铺<b><?php echo $shop['shopname'];?></b></span>
                            <span>渠道<b><?php echo $ditch['ditchname'];?></b></span>
                        </div>
                        <div id="adm_edit">
                            <form onsubmit="return postEditForm()" name="editForm">
                                <table width="100%" cellpadding="0" cellspacing="0" class="adm_table">
                                    <tr>
                                        <td width="80">店铺</td>
                                        <td><?php echo $shop['shopname'];?></td>
                                    </tr>
                                    <tr>
                                        <td>渠道</td>
                                        <td><?php echo $ditch['ditchname'];?></td>
                                    </tr>
                                    <tr>
                                        <td>曝光</td>
                                        <td><input type="text" name="views" class="bar bar1"></td>
                                    </tr>
                                    <tr>
                                        <td>点击</td>
                                        <td><input type="text" name="clicks" class="bar bar1"></td>
                                    </tr>
                                    <tr>
                                        <td>客资</td>
                                        <td><input type="text" name="kezi" class="bar bar1"></td>
                                    </tr>
                                    <tr>
                                        <td>成本</td>
                                        <td><input type="text" name="cost" class="bar bar1"></td>
                                    </tr>
                                    <tr>
                                        <td>录入员</td>
                                        <td><?php echo $userData['username'];?></td>
                                    </tr>
                                    <tr>
                                        <td>录入时间</td>
                                        <td><?php echo date("Y-m-d H:i:s");?></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <input type="hidden" name="addtime" value="<?php echo time();?>">
                                            <input type="hidden" name="token" value="<?php echo loginAuth::genToken();?>">
                                            <input type="hidden" name="did" value="<?php echo $shop_id;?>">
                                            <input type="hidden" name="sid" value="<?php echo $ditch_id;?>">
                                            <input type="hidden" name="action" value="edit">
                                            <input type="submit" value="提交保存" class="btn">
                                        </td>
                                    </tr>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php include View::getView('footer');?>
    </div>
</div>
<script type="text/javascript">
function postEditForm(){
    var theData = $("form[name=editForm]").serialize();
}
</script>
</body>
</html>